import Vue from "vue"
// 引入elementUI
import { Radio,Button,Message,MessageBox,RadioGroup,RadioButton,Input,FormItem,Form,
  Upload,IconPlus,Table,TableColumn,MenuItem,MenuItemGroup,Submenu,Row,Col,Menu,Tag,
  DescriptionsItem,Descriptions,Tooltip,Switch,Popover,InputNumber,Checkbox,
  Steps,Step,Header,Container,Main,Breadcrumb,BreadcrumbItem,Card,Pagination,Dialog,
  Tree,Cascader,Alert,Tabs,TabPane,Option,Select,DatePicker,CheckboxGroup} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' //样式必须引入

Vue.component('el-radio',Radio)
Vue.component('el-button',Button)
Vue.component('el-radio-group',RadioGroup)
Vue.component('el-radio-button',RadioButton)
Vue.component('el-input',Input)
Vue.component('el-form',Form)
Vue.component('el-form-item',FormItem)
Vue.component('el-upload',Upload)
Vue.component('el-icon-plus',IconPlus)
Vue.component('el-table',Table)
Vue.component('el-table-column',TableColumn)
Vue.component('el-menu-item',MenuItem)
Vue.component('el-menu-item-group',MenuItemGroup)
Vue.component('el-submenu',Submenu)
Vue.component('el-col',Col)
Vue.component('el-row',Row)
Vue.component('el-menu',Menu)
Vue.component('el-descriptions-item',DescriptionsItem)
Vue.component('el-descriptions',Descriptions)
Vue.component('el-tag',Tag)
Vue.component('el-tooltip',Tooltip)
Vue.component('el-switch',Switch)
Vue.component('el-popover',Popover)
Vue.component('el-input-number',InputNumber)
Vue.component('el-checkbox',Checkbox)
Vue.component('el-steps',Steps)
Vue.component('el-step',Step)
Vue.component('el-header',Header)
Vue.component('el-container',Container)
Vue.component('el-main',Main)
Vue.component('el-breadcrumb',Breadcrumb)
Vue.component('el-breadcrumb-item',BreadcrumbItem)
Vue.component('el-card',Card)
Vue.component('el-pagination',Pagination)
Vue.component('el-dialog',Dialog)
Vue.component('el-tree',Tree)
Vue.component('el-cascader',Cascader)
Vue.component('el-alert',Alert)
Vue.component('el-tabs',Tabs)
Vue.component('el-tab-pane',TabPane)
Vue.component('el-option',Option)
Vue.component('el-select',Select)
Vue.component('el-date-picker',DatePicker)
Vue.component('el-checkbox-group',CheckboxGroup)


//导入弹框提示组件，挂载到原型对象上
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm